package org.linlinjava.litemall.core.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class LumiereCloverAPIConstant {

    //========================== Clover API ==========================

    public static String CLOVER_ACQUIRECODE;
    public static String CLOVER_EXECUTEPAYMENT;
    public static String CLOVER_GETCUSTOMERCARDS;
    public static String CLOVER_APPENDCUSTOMER;
    public static String CLOVER_CREATECUSTOMER;
    public static String CLOVER_DELETECUSTOMER;
    public static String CLOVER_REFUNDS;

    //创建clover用户
    public static String CLOVER_CREATE_CUSTOMER_CARDS;

    @Value("${clover.createCustomerCards.url}")
    public void setCloverCreateCustomerCards(String cloverCreateCustomerCards) {
        CLOVER_CREATE_CUSTOMER_CARDS = cloverCreateCustomerCards;
    }

    @Value("${clover.refunds.url}")
    public void setCloverRefunds(String cloverRefunds) {
        CLOVER_REFUNDS = cloverRefunds;
    }

    @Value("${clover.acquireCode.url}")
    public void setCloverAcquirecode(String cloverAcquirecode) {
        CLOVER_ACQUIRECODE = cloverAcquirecode;
    }

    @Value("${clover.executePayment.url}")
    public void setCloverExecutepayment(String cloverExecutepayment) {
        CLOVER_EXECUTEPAYMENT = cloverExecutepayment;
    }
    @Value("${clover.getCustomerCards.url}")
    public void setCloverGetcustomercards(String cloverGetcustomercards) {
        CLOVER_GETCUSTOMERCARDS = cloverGetcustomercards;
    }
    @Value("${clover.appendCustomer.url}")
    public void setCloverAppendcustomer(String cloverAppendcustomer) {
        CLOVER_APPENDCUSTOMER = cloverAppendcustomer;
    }
    @Value("${clover.createCustomer.url}")
    public void setCloverCreatecustomer(String cloverCreatecustomer) {
        CLOVER_CREATECUSTOMER = cloverCreatecustomer;
    }
    @Value("${clover.deleteCustomer.url}")
    public void setCloverDeletecustomer(String cloverDeletecustomer) {
        CLOVER_DELETECUSTOMER = cloverDeletecustomer;
    }
}
